import LogData from "@/views/SystemAdministration/LogData.vue";
import http from "../utils/http/http";
//遍历查
const getLogData = (data) => {
    return http.get("/logData/", data);
};
//查数据表总记录数
const countLogData = (data) => {
    return http.get("/logData/list/", data);
};

// 模糊查询日志数据
const filterLogData = async (actionReg) => {
    try {
        const response = await http.get(`/logData/filter?actionReg=${encodeURIComponent(actionReg)}`);
        // console.log(response.data)
        return response.data;
    } catch (error) {
        console.error('筛选日志数据时发生错误：', error);
        throw error;
    }
};



  
export default {
    getLogData, countLogData,filterLogData
}